package ooday03;

import ooday03.Animal;

public class Dog extends Animal implements Swim{
    Dog(String name,int age,String color){
        super(name,age,color);
    }
    void eat(){//重写抽象方法
        System.out.println(color+"色的"+age+"岁的狗"+name+"在吃骨头");
    }
    void lookHome(){
        System.out.println(color+"色的"+age+"岁的狗"+name+"在看家");
    }
    public void swim(){
        System.out.println(color+"色的"+age+"岁的狗"+name+"在游泳");
    }
}
